<template>
  <div>
    <!-- 面包屑导航区 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>数据统计</el-breadcrumb-item>
    </el-breadcrumb>
    <!-- 内容区域 -->
    <el-card class="box-card">
      <!-- 筛选框区域 -->
      <el-form>
        <el-form-item>
          <el-row :gutter="10">
            <el-col :span="5">
              <el-select v-model="beer.address" placeholder="请选择门店">
                <el-option
                  label="重庆/江北旗舰店"
                  value="chongqingshop"
                ></el-option>
                <el-option
                  label="成都/龙湖天街4F烤肉"
                  value="chengdushop"
                ></el-option>
              </el-select>
            </el-col>
            <el-col :span="5">
              <el-select v-model="beer.type" placeholder="请选择啤酒类型">
                <el-option label="黄啤" value="yellowbeer"></el-option>
                <el-option label="白啤" value="whitebeer"></el-option>
              </el-select>
            </el-col>
            <el-col :span="5">
              <el-date-picker
                type="date"
                placeholder="开始日期"
                v-model="beer.date.date1"
                style="width: 100%;"
              ></el-date-picker>
            </el-col>
            <el-col :span="5">
              <el-date-picker
                type="date"
                placeholder="截止日期"
                v-model="beer.date.date2"
                style="width: 100%;"
              ></el-date-picker>
            </el-col>
            <el-col class="line" :span="4">
              <el-button type="success">筛选</el-button>
              <el-button type="info">重置</el-button>
            </el-col>
          </el-row>
        </el-form-item>
      </el-form>
      <!-- 打酒记录 -->
      <el-table :data="tableData" border style="width: 100%" stripe fit>
        <el-table-column label="#" type="index"></el-table-column>
        <el-table-column prop="shop" label="门店"> </el-table-column>
        <el-table-column prop="beer" label="啤酒"> </el-table-column>
        <el-table-column prop="amount" label="消耗数量（升）">
        </el-table-column>
        <el-table-column prop="stock" label="剩余库存（升）"> </el-table-column>
        <el-table-column prop="time" label="时间"> </el-table-column>
      </el-table>
      <!-- 分页功能区域 -->
      <!-- <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="pageable.pageNumber"
        :page-sizes="[5, 8, 10, 20]"
        :page-size="pageable.pageSize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="totalElements"
      >
      </el-pagination> -->
    </el-card>
  </div>
</template>
<script>
export default {
  name: 'SalesData',
  data () {
    return {
      tableData: [
        {
          shop: '龙湖北辰天街店',
          beer: '黄啤',
          amount: 0.5,
          stock: 60,
          time: '2020-09-22 21:03:00'
        }
      ],
      beer: {
        type: '',
        address: '',
        date: {
          date1: '',
          date2: ''
        }
      }
    }
  }
}
</script>
